package com.zhu.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by DELL on 2016/1/4.
 */
@Component
public class AnnotationTask {

//    @Scheduled(cron="0/10 * * * * ?")
    public void annotationTask(){
        System.out.println("annotation task:" + new Date());
    }
}
